<?php

class Exts_Services_Erepublik_Oauth extends Exts_Services_Erepublik_Abstract {

	public function __construct($key, $secret) {
		$this->_apiKey = $key;
		$this->_apiSecret = $secret;

		$config = array(
			'callbackUrl' => 'http://example.com/callback.php',
			'siteUrl' => 'http://twitter.com/oauth',
			'consumerKey' => 'gg3DsFTW9OU9eWPnbuPzQ',
			'consumerSecret' => 'tFB0fyWLSMf74lkEu9FTyoHXcazOWpbrAjTCCK48A'
		);
		$consumer = new Zend_Oauth_Consumer($config);

		// fetch a request token
		$token = $consumer->getRequestToken();

		var_dump($token);exit;
	}

}